package cn.buglife.springboot.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by CrazyHarry on 2015/8/5.
 */
@Controller
@EnableAutoConfiguration
public class ExampleController {

    @RequestMapping(value = "/welcome", method = RequestMethod.GET)
    @ResponseBody
    String hello() {
        return "Welcome you to buglife";
    }

}
